package com.cy.pj.health.controller;

import com.cy.pj.health.pojo.RequestParameter;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class ParamObjectController {


    @GetMapping("/doParam01")
    public String doMethodParam(String name){
        return "request params "+name;
    }

    @RequestMapping("/doParam02")
    public String doMethodParam(RequestParameter param){
        return "request params "+param.toString();
    }
    @RequestMapping("/doParam03")
    public String doMethodParam(@RequestParam Map<String,Object> param){
        return "request params "+param.toString();
    }


}
